using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HouseColltroller : MonoBehaviour
{

    public GameObject enterDialog;
    // Start is called before the first frame update

    private void OnTriggerEnter2D(Collider2D other) {
        if(other.tag == "Player"){
            enterDialog.SetActive(true);
        }
    }

    private void OnTriggerExit2D(Collider2D other) {
        if(other.tag == "Player"){
            enterDialog.SetActive(false);
        }
    }

}
